<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>店铺身份信息管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function () {

        });

        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
        function getIds() {
            var ids = [];
            $("input[name='ids']:checked").each(function () {
                ids.push({id:$(this).val(),name:$(this).attr("label")});
            });
            return ids;
        }

    </script>
</head>
<body>
<c:if test="${empty hkEnterShopInfo.checked}">
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/shop/shop/hkEnterShopInfo/">店铺身份信息列表</a></li>
    <shiro:hasPermission name="shop:shop:hkEnterShopInfo:edit">
        <li><a href="${ctx}/shop/shop/hkEnterShopInfo/form">店铺身份信息添加</a></li>
    </shiro:hasPermission>
</ul>
</c:if>
<form:form id="searchForm" modelAttribute="hkEnterShopInfo" action="${ctx}/shop/shop/hkEnterShopInfo/" method="post"
           class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <input id="checked" name="checked" type="hidden" value="${hkEnterShopInfo.checked}"/>
    <ul class="ul-form">
        <li><label>店铺名称：</label>
            <form:input path="shop.id" htmlEscape="false" maxlength="32" class="input-medium"/>
        </li>
        <li><label>管理员姓名：</label>
            <form:input path="managerName" htmlEscape="false" maxlength="32" class="input-medium"/>
        </li>
        <li><label>管理员邮箱：</label>
            <form:input path="managerEmail" htmlEscape="false" maxlength="32" class="input-medium"/>
        </li>
        <li><label>管理员手机：</label>
            <form:input path="managerMobile" htmlEscape="false" maxlength="11" class="input-medium"/>
        </li>
        <li><label>法人姓名：</label>
            <form:input path="lagalPersonName" htmlEscape="false" maxlength="32" class="input-medium"/>
        </li>
        <li><label>法人电话：</label>
            <form:input path="legalPersonMobile" htmlEscape="false" maxlength="11" class="input-medium"/>
        </li>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <c:if test="${not empty hkEnterShopInfo.checked}">
            <th>选择</th>
        </c:if>
        <th>店铺名称</th>
        <th>管理员姓名</th>
        <th>管理员邮箱</th>
        <th>管理员手机</th>
        <th>法人姓名</th>
        <th>法人电话</th>
        <th>身份证人像面图片路径</th>
        <th>身份证国徽面图片路径</th>
        <th>手持身份证件半身照</th>
        <th>更新时间</th>
        <th>备注</th>
        <c:if test="${ empty hkEnterShopInfo.checked}">
        <shiro:hasPermission name="shop:shop:hkEnterShopInfo:edit">
            <th>操作</th>
        </shiro:hasPermission>
        </c:if>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="hkEnterShopInfo2">
        <tr>
            <c:if test="${not empty hkEnterShopInfo.checked}">
                <td>
                    <input type="checkbox" name="ids" value="${hkEnterShopInfo2.id}" label="${hkEnterShopInfo2.shop.name}">
                </td>
            </c:if>
            <td>
                <c:if test="${not empty hkEnterShopInfo.checked}">
                    ${hkEnterShopInfo2.shop.name}
                </c:if>
                <c:if test="${ empty hkEnterShopInfo.checked}">
                    <a href="${ctx}/shop/shop/hkEnterShopInfo/form?id=${hkEnterShopInfo2.id}">
                            ${hkEnterShopInfo2.shop.name}
                    </a>
                </c:if>
            </td>


            <td>
                    ${hkEnterShopInfo2.managerName}
            </td>
            <td>
                    ${hkEnterShopInfo2.managerEmail}
            </td>
            <td>
                    ${hkEnterShopInfo2.managerMobile}
            </td>
            <td>
                    ${hkEnterShopInfo2.lagalPersonName}
            </td>
            <td>
                    ${hkEnterShopInfo2.legalPersonMobile}
            </td>
            <td>
                <img src="${hkEnterShopInfo2.cardPersonImgSrc}" width="100px" height="100px" class="img-thumbnail"/>
            </td>
            <td>

                <img src="${hkEnterShopInfo2.cardCountryImgSrc}" width="100px" height="100px" class="img-thumbnail"/>
            </td>
            <td>

                <img src="${hkEnterShopInfo2.persionImgSrc}" width="100px" height="100px" class="img-thumbnail"/>
            </td>
            <td>
                <fmt:formatDate value="${hkEnterShopInfo2.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
            </td>
            <td>
                    ${hkEnterShopInfo2.remarks}
            </td>
            <c:if test="${ empty hkEnterShopInfo.checked}">
            <shiro:hasPermission name="shop:shop:hkEnterShopInfo:edit">
                <td>
                    <a href="${ctx}/shop/shop/hkEnterShopInfo/form?id=${hkEnterShopInfo2.id}">修改</a>
                    <a href="${ctx}/shop/shop/hkEnterShopInfo/delete?id=${hkEnterShopInfo2.id}"
                       onclick="return confirmx('确认要删除该店铺身份信息吗？', this.href)">删除</a>
                </td>
            </shiro:hasPermission>
            </c:if>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>